Electronic device and method for dynamically adjusting output of headset

ABSTRACT

An electronic device and a method for dynamically adjusting the output of a headset are provided in the invention. The electronic device includes a first connection interface, a processor and a storage device. When the first connection interface is coupled to the detection device, the first connection interface transmits detection-source signals to the detection device, and receives groups of headset output signals corresponding to the detection-source signals from the detection device. When the first connection interface is coupled to the detection device, the processor obtains gain information according a plurality of groups of measured headset signals corresponding to the groups of headset output signals, and when the first connection interface is coupled to the headset device, the processor dynamically adjusts the output of the headset device according to the gain information. The storage device is coupled to the processor and stores the gain information.

CROSS REFERENCE TO RELATED APPLICATIONS

This Application is a Continuation of pending U.S. application Ser. No.15/335,267, filed on Oct. 26, 2016, which claims priority of TaiwanPatent Application No. 105117930, filed on Jun. 7, 2016, the entirety ofwhich is incorporated by reference herein.

BACKGROUND OF THE INVENTION Field of the Invention

The invention generally relates to a technology for setting the outputof a headset, and more particularly, to a technology for setting theoutput of a headset by obtaining gain information corresponding to eachvolume level to adjust the output of the headset.

Description of the Related Art

In conventional headset technology, standards for the maximum headsetoutput voltage of the electronic device are formulated to protect theuser's hearing. For example, in the EN50332 standard formulated by theEuropean Union (EU), when the detection source is −10 dB pink noise, themaximum headset output voltage must be lower than the save voltage (150mV). In this standard, when the maximum source OdBFS is played, theoutput voltage is 300 mV.

However, in many conventional electronic devices, the output voltage setin these electronic devices may still be higher than the range of thesave voltage. In addition, in different nations, different standards andverifications may be formulated to manage the electronic devices.Therefore, when a nation selling the electronic device has notformulated a standard, the maximum headset output voltage of theelectronic device may be higher than the save voltage. As a result, theuser's hearing may be impaired.

BRIEF SUMMARY OF THE INVENTION

A wireless electronic device and a method for dynamically adjusting theoutput of a headset by obtaining gain information corresponding to eachvolume level to dynamically adjust the output of the headset areprovided to overcome the problems mentioned above.

An embodiment of the invention provides an electronic device. Theelectronic device includes a first connection interface, a processor anda storage device. The first connection interface is coupled to adetection device or a headset device, when the first connectioninterface is coupled to the detection device transmits a plurality ofdetection-source signals to the detection device, and receives aplurality of groups of headset output signals corresponding to theplurality of detection-source signals from the detection device. Theprocessor is coupled to the first connection interface, when the firstconnection interface is coupled to the detection device obtains gaininformation according a plurality of groups of measured headset signalscorresponding to the plurality of groups of headset output signals, andwhen the first connection interface is coupled to the headset devicedynamically adjusts the output of the headset device according to thegain information. The storage device is coupled to the processor andstores the gain information.

In some embodiments of the invention, the headset device includes adirect-current (DC) cancellation circuit and a bleeder circuit. In someembodiments of the invention, the electronic device further includes aplaying device. The playing device is coupled to the processor and playsa source signal at a first volume level, and transmits the source signalto the headset device through the first connection interface. In someembodiments of the invention, the first connection interface receives anoutput signal which is generated by processing the source signal by theDC cancellation circuit and the bleeder circuit of the headset device.In some embodiments of the invention, the electronic device furtherincludes a recording device. The recording device is coupled to theprocessor and records the plurality of groups of measured headsetsignals and a microphone signal corresponding to the output signal. Insome embodiments of the invention, the processor samples the microphonesignal every default period to obtain an effective-voltage valuecorresponding to the microphone signal in each default period. In someembodiments of the invention, the processor determines whether theeffective-voltage value is higher than a threshold, and when theeffective-voltage value is higher than the threshold, dynamicallyadjusts the first volume level to a second volume level.

An embodiment of the invention provides a method for dynamicallyadjusting an output of a headset. The method for dynamically adjustingthe output of the headset is applied to an electronic device. The methodfor dynamically adjusting the output of the headset includes the stepsof coupling the electronic device to a detection device; transmitting aplurality of detection-source signals to the detection device; receivinga plurality of groups of headset output signals corresponding to theplurality of detection-source signals from the detection device;obtaining gain information according a plurality of groups of measuredheadset signals corresponding to the plurality of groups of headsetoutput signals; unplugging the detection device from the electronicdevice; coupling the electronic device to a headset device anddynamically adjusting the output of the headset according to the gaininformation.

Other aspects and features of the invention will become apparent tothose with ordinary skill in the art upon review of the followingdescriptions of specific embodiments of electronic devices and methods.

BRIEF DESCRIPTION OF THE DRAWINGS

The invention will become more fully understood by referring to thefollowing detailed description with reference to the accompanyingdrawings, wherein:

FIG. 1 is a block diagram of an electronic device 100 according to anembodiment of the invention;

FIG. 2 is a block diagram of a detection device 200 according to anembodiment of the invention;

FIG. 3 is a schematic diagram of a headset connector 300 according to anembodiment of the invention;

FIG. 4A and FIG. 4B are schematic diagrams for generating the controlsignal S1 according to an embodiment of the invention;

FIG. 5 is a block diagram of a headset device 400 according to anembodiment of the invention;

FIG. 6 is a flow chart 600 illustrating the method for dynamicallyadjusting the output of the headset according to an embodiment of theinvention;

FIG. 7 is a flow chart 700 illustrating step S650 according to anembodiment of the invention.

DETAILED DESCRIPTION OF THE INVENTION

The following description is of the best-contemplated mode of carryingout the invention. This description is made for the purpose ofillustrating the general principles of the invention and should not betaken in a limiting sense. The scope of the invention is best determinedby reference to the appended claims.

FIG. 1 is a block diagram of an electronic device 100 according to anembodiment of the invention. The electronic device 100 may be a computerhost, a notebook computer, a tablet, a mobile/portable device, etc. Asshown FIG. 1, the electronic device 100 comprises a first connectioninterface 110, a second connection interface 120, a processor 130, and astorage device 140. Note that, in order to clarify the concept of theinvention, FIG. 1 presents a simplified block diagram in which only theelements relevant to the invention are shown. However, the inventionshould not be limited to what is shown in FIG. 1. The electronic device100 can also comprise other elements.

FIG. 2 is a block diagram of a detection device 200 according to anembodiment of the invention. As shown FIG. 2, the detection device 200comprises a third connection interface 210, a fourth connectioninterface 220, a switch circuit 230, a signal generator 240, adirect-current (DC) cancellation circuit 250 and a bleeder circuit 260.Note that, in order to clarify the concept of the invention, FIG. 2presents a simplified block diagram in which only the elements relevantto the invention are shown. However, the invention should not be limitedto what is shown in FIG. 2. The detection device 200 can also compriseother elements.

As shown FIG. 1, the first connection interface 110 is coupled to theprocessor 130. In an embodiment of the invention, when the electronicdevice 100 is detected, the first connection interface 110 of theelectronic device 100 may be coupled to the third connection interface210 of the detection device 200 by a headset connector 300. In anembodiment of the invention, the first connection interface 110corresponds to the female of the headset connector 300 and the thirdconnection interface 210 corresponds to the male of the headsetconnector 300. FIG. 3 is a schematic diagram of a headset connector 300according to an embodiment of the invention. As shown in FIG. 3, theheadset connector 300 may be a 4-pin headset connector, wherein the 4pins are MIC, GND, RIGHT and LEFT. In an embodiment of the invention,when the first connection interface 110 of the electronic device 100 hasbeen coupled to the third connection interface 210 of the detectiondevice 200 by the headset connector 300, the processor 130 may determinethat the detection device 200 is a headset device with a microphone.That is to say, the processor 130 may identify the detection device 200as a headset device with a microphone.

As shown in FIG. 1, the second connection interface is coupled to theprocessor 130. In an embodiment of the invention, the second connectioninterface 120 and the fourth connection interface 220 areGeneral-purpose input/output (GPIO), such as a Universal Serial Bus(USB) interface. When the electronic device 100 is detected, the secondconnection interface 120 is coupled to the fourth connection interface220 to transmit the control signal S1 generated by the processor 130 tothe detection device 200 through the fourth connection interface 220.FIG. 4A and FIG. 4B are schematic diagrams for generating the controlsignal S1 according to an embodiment of the invention. As shown in FIG.4A and FIG. 4B, the second connection interface 120 further comprises anadder 121. When the processor 130 transmits differential signals (e.g.Data+ or Data− as shown by the solid line in FIG. 4A) the differentialsignals will be added by the adder 121 to generate a high voltage-levelcontrol signal; and when the processor 130 transmits ground signals GND(e.g. as shown by the dashed line in FIG. 4B) the ground signals GNDwill be added by the adder 121 to generate a low voltage-level controlsignal. When the fourth connection interface 220 receives the controlsignal S1, the fourth connection interface 220 may transmit the controlsignal S1 to the switch circuit 230. The switch circuit 230 maydetermine that the DC cancellation circuit 250 will be coupled to thethird connection interface 210 or to the signal generator 240 accordingto the control signal S1. Details for determining whether the DCcancellation circuit 250 will be coupled to the third connectioninterface 210 or to the signal generator 240 will be discussed below.

As shown in FIG. 1, the storage device 140 is coupled to the processor130. According to embodiments of the invention, the storage device 140is utilized to store the software code, firmware code, system data, userdata, and so on in the electronic device 100. The storage device 140 isa volatile memory (e.g. random access memory (RAM)), a non-volatilememory (e.g. flash memory, read only memory (ROM)), a hard disc, or acombination of the memory devices listed above.

As shown above, in an embodiment of the invention, when the electronicdevice 100 is detected, the first connection interface 110 of theelectronic device 100 is coupled to the third connection interface 210of the detection device 200 by a headset connector 300 and the secondconnection interface 120 of the electronic device 100 is coupled to thefourth connection interface 220 of the detection device 200. Then, theprocessor 130 will enable a recording device (or a recording modulewhich is not shown in figures) and transmit the control signal S1 to thedetection device 200 through the second connection interface 120. In anembodiment of the invention, the recording device is coupled to theprocessor 130. The recording device is an independent circuit orintegrated in the processor 130. The recording device may record amicrophone signal and a plurality of groups of measured headset signals.Specifically, the voltage values of the microphone signal and themeasured headset signals recorded by the recording device means the realvoltage values of the microphone signal and headset signal measured bythe electronic device 100.

In an embodiment of the invention, the processor 130 may transmit a highvoltage-level control signal S1 (first control signal) to the fourthconnection interface 220 through the second connection interface 120first. Then, the fourth connection interface 220 may transmit thecontrol signal S1 to the switch circuit 230. When the switch circuit 230receives the high voltage-level control signal S1, the switch circuit230 may couple the DC cancellation circuit 250 to the signal generator240. In an embodiment of the invention, the signal generator 240 may bean RC-oscillator. The signal generator 240 may generate an oscillationsignal S2 and then transmit the oscillation signal S2 to the DCcancellation circuit 250 to cancel the DC component of the oscillationsignal S2. Then, the oscillation signal S2 which has canceled the DCcomponent will be transmitted to the bleeder circuit 260 to perform thevoltage-division process. After the voltage-division process, theoscillation signal S2 will be transmitted to the first connectioninterface 110 through the third connection interface 210. After thefirst connection interface 110 transmits the oscillation signal S2 tothe processor 130, the processor 130 may obtain the microphoneinformation (or microphone-path information) according to the microphonesignal and the oscillation signal S2, wherein the microphone signalcorresponds to the oscillation signal S2 and is recorded by therecording device. For example, if the oscillation signal S2 is a 100 mVsignal and the microphone signal recorded by the recording device is a200 mV signal, the processor 130 can know the microphone gain (i.e.microphone information) is 2 according to the oscillation signal S2 andthe microphone signal. That is to say, any microphone signal receivedthrough a microphone path of the first connection interface 110 isprocessed by the microphone gain. After the processor 130 obtains themicrophone information, the microphone information will be stored in thestorage device 140.

In an embodiment of the invention, when obtaining the microphoneinformation, the processor 130 may enable a playing device to play thedetection-source signals S3 (e.g. −10 dB pink noise at different volumelevels) and transmit a low voltage-level control signal S1 (secondcontrol signal) to the fourth connection interface 220 through thesecond connection interface 120. For example, the playing device maystart to play the detection-source signals S3 from the max maximumsource 0 dBFS. Then, the play device plays the detection-source signalwhich is decreased 5 dB from the max maximum source 0 dBFS. Accordingly,the play device will play the detection-source signals until the −20 dBdetection-source signal. That is to say, the playing device may play 0dB, −5 dB, −10 dB, and −20 dB detection-source signals. It should beunderstood that the invention is not limited thereto. In addition, theplaying device may play each of the detection-source signals S3 at adifferent volume level.

Then, the fourth connection interface 220 may transmit the controlsignal S1 to the switch circuit 230. When the switch circuit 230receives the low voltage-level control signal S1, the switch circuit 230may couple the DC cancellation circuit 250 to the third connectioninterface 210. The third connection interface 210 may receive thedetection-source signals S3 at different volume levels (i.e. differentvolumes) from the playing device. The third connection interface 210 maytransmit the received detection-source signals S3 to the DC cancellationcircuit 250 to cancel the DC component of the detection-source signalsS3. Then, the detection-source signals S3 which have canceled the DCcomponent will be transmitted to the bleeder circuit 260 to perform thevoltage-division process to generate a plurality of groups of headsetoutput signals S4. Note that, at this stage, the plurality of groups ofvoltage values of the headset output signals S4 are still unknown. Thatis to say, the headset information (or headset path information)measured later will comprise the voltage values of the headset outputsignals S4.

In an embodiment of the invention, each group of headset output signalsS4 may respectively correspond to different detection-source signals S3and the headset output signals comprised in one group may respectivelycorrespond to different volume levels. The plurality of groups ofheadset output signals S4 may be transmitted to the first connectioninterface 110 (i.e. microphone path of the first connection interface110) through the third connection interface 210. After the firstconnection interface 110 transmits the plurality of groups of headsetoutput signals S4 to the processor 130, the processor 130 can obtain thevoltage values (headset information or headset path information) of theheadset output signals S4 according to a plurality of groups of measuredheadset signals recorded by the recording device and microphoneinformation (microphone gain), wherein the plurality of groups ofmeasured headset signals correspond to the plurality of groups ofheadset output signals S4.

In an embodiment of the invention, the processor 130 may analyze whetherthe electronic device 100 enables a Dynamic Range Control (DRC) functionaccording to the plurality of groups of measured headset signalsrecorded by the recording device. The DRC function is a volume-controlmethod which is currently applied to the front-end of the electronicdevice. When the signals are processed by the DRC function, the smallsignal will be amplified and the large signal will be maintained tocontrol the output signals in the specific range. Therefore, when theprocessor 130 determines whether to adjust the current volume level(first volume level), the processor 130 may analyze whether theelectronic device 100 enables the DRC function first to accuratelydetermine the gains of the different detection-source signals atdifferent volume levels when the different detection-source signals aredisplayed.

If the DRC function is enabled, the processor 130 can analyze thecurrent DRC setting of the electronic device 100 according to theplurality of groups of measured headset signals recorded by therecording device to ensure that the signal can be adjusted when thesignal is processed by the DRC function but is still over the securerange. As a result, the processor 130 can accurately determine the gainsof the different detection-source signals at different volume levelswhen the different detection-source signals are displayed.

In an embodiment of the invention, when the processor 130 has analyzedthe current DRC setting of the electronic device 100, the processor 130may obtain gain information according to the plurality of groups ofmeasured headset signals recorded by the recording device and store thegain information in the storage device 140. The gain informationindicates the corresponding signal gain of each volume level.

The gain affected by the DRC setting of the normal electronic device isnot over 10 dB. Therefore, in an embodiment of the invention, −20 dBsource signal may be adopted as the detection-source signal to obtainthe gain information corresponding to each volume level. However, itshould be understood that the invention is not limited thereto. Forexample, if a −20 dB source signal is adopted as the detection-sourcesignal, the voltage values of the measured headset signals obtained bythe processor 130 at different volume levels are shown as follows. At L0volume level, the voltage value of the measured headset signal is 200mV. At L1 volume level, the voltage value of the measured headset signalis 100 mV. At L2 volume level, the voltage value of the measured headsetsignal is 50 mV. At L3 volume level, the voltage value of the measuredheadset signal is 25 mV. The processor 130 can obtain the gain G_(i)(gain information) corresponding to each volume, wherein i refers to avolume level of L1 (i.e. L0 volume level˜L3 volume level). Accordingly,the gain G_(i) corresponding to each volume level is G₀=8, G₁=4, G₂=2,G₃=1. In an embodiment of the invention, the processor 130 maydynamically adjust the output of the headset according to the gaininformation. Details for adjusting the output of the headset accordingto the gain information are discussed below.

In an embodiment of the invention, when the gain information isobtained, the user can take a headset device 400 to connect to theelectronic device 100 to listen to the audio data through the headsetdevice 400. In an embodiment of the invention, when the first connectioninterface 110 of the electronic device 100 is coupled to the connectorof the headset device 400, the processor 130 will determine that theheadset device 400 is a headset device with a microphone, wherein theconnector of the headset device 400 is a 4-pin headset connector (asshown in FIG. 3). In an embodiment of the invention, the headset device400 is a hearing protection device. Details of the hearing protectiondevice will be discussed by taking FIG. 5 as an example below.

FIG. 5 is a block diagram of a headset device 400 according to anembodiment of the invention. As shown in FIG. 5, the headset device 400includes a direct-current (DC) cancellation circuit 410, a bleedercircuit 420 and a playing unit 430. In an embodiment of the invention,the DC cancellation circuit 410 and the bleeder circuit 420 may be thesame circuits or elements as the DC cancellation circuit 250 and thebleeder circuit 260. The playing unit 430 is a speaker or loudspeakerwhich is utilized to play the source signal (e.g. audio signal or data)from the headset device 400 to the user.

When the user uses the headset device 400 to listen to the sourcesignal, the playing device may play a source signal S5 at a first volumelevel, and transmit the source signal S5 through the first connectioninterface 110 to the headset device 400. When the headset device 400receives the source signal S5, the source signal S5 will be transmittedto the DC cancellation circuit 410 to cancel the DC component of thesource signal S5. Then, the DC cancellation circuit 410 transmits thesource signal S5 which has canceled the DC component to the bleedercircuit 420 to perform the voltage-division process to generate anoutput signal S6. Then, the output signal S6 is transmitted to themicrophone path of the first connection interface 110. The recordingdevice will record a microphone signal corresponding to the outputsignal S6.

In an embodiment of the invention, the processor 130 may sample themicrophone signal corresponding to the output signal S6 and recorded bythe recording device every default period (e.g. 1 second) to obtain aneffective-voltage value {circumflex over (V)}_(Y) corresponding to themicrophone signal in each default period. In an embodiment of theinvention, the effective-voltage value {circumflex over (V)}_(Y) in theY-th default period may be indicated as:

${{\hat{V}}_{Y} = {\frac{1}{N}\sqrt{\frac{1}{2}{\sum\limits_{n = 0}^{N - 1}x_{n}^{2}}}}},$

wherein N indicates there are N sampling points in each period, and thesampling voltage is x_(n). Then, the processor 130 determines whetherthe effective-voltage value {circumflex over (V)}_(Y) is higher than athreshold V. When the effective-voltage value {circumflex over (V)}_(Y)is higher than the threshold V, the processor 130 dynamically adjuststhe first volume level to an appropriate second volume level. In anembodiment of the invention, the threshold V may be set to the outputvoltage (300 mV) which is output when the maximum source 0 dBFS isplayed according to the EN50332 standard. In an embodiment of theinvention, the appropriate second volume level may be selected accordingto the follow equation:

${{\hat{G}}_{Z} \leq {\frac{\overset{\_}{V}}{V_{Y}}G_{i}}},$

wherein the gain G_(i) indicates as the gain corresponding to the i-thvolume level, Ĝ_(Z) indicates the appropriate range of gain, and Zindicates the volume level whose corresponding gain is the mostapproximate to the Ĝ_(Z) (i.e. the volume level the most approximate tothe save voltage). In this equation, the current volume level (i.e. thefirst volume level) will be taken for the gain G_(i). For example, ifthe threshold V is 300 mV, and the measured effective-voltage value{circumflex over (V)}_(Y) corresponding to the first volume level (here,it is assumed that the first volume level is the L0 volume leveldescribed above) is 900 mV (larger than the effective-voltage value{circumflex over (V)}_(Y)), the appropriate range of gain Ĝ_(Z) isobtained by plugging the threshold V, effective-voltage value{circumflex over (V)}_(Y), and the gain corresponding to the firstvolume level (as shown above, G₀=8, G₁=4, G₂=2, and G₃=1, therefore thegain G₀ corresponding to the L0 volume level is 8) into the equation,i.e. the appropriate range of gain Ĝ_(Z)≦2.67. Therefore, the processor130 may select the volume level Z whose corresponding gain is the mostapproximate to the Ĝ_(Z) as the second volume level (i.e. L2 volumelevel is elected because G₂ is the most approximate to 2.67) todynamically adjust the volume level, i.e. the first volume level will beadjusted to the second volume level (from L0 volume level to L2 volumelevel). When the effective-voltage value {circumflex over (V)}_(Y) isnot higher than a threshold V, the source signal will still be played atthe first volume level.

FIG. 6 is a flow chart 600 illustrating the method for dynamicallyadjusting the output of the headset according to an embodiment of theinvention. The method for dynamically adjusting the output of theheadset is applied to the electronic device 100. As shown in FIG. 6, instep S610, the electronic device 100 is coupled to the detection device200. In step S620, the electronic device 100 transmits a plurality ofdetection-source signals to the detection device 200. In step S630, theelectronic device 100 receives a plurality of groups of headset outputsignals corresponding to the plurality of detection-source signals. Instep S640, the electronic device 100 obtains gain information accordingto a plurality of groups of measured headset signals corresponding tothe plurality of groups of headset output signals. In step S650, theelectronic device 100 dynamically adjusts an output of the headsetaccording to the gain information. In an embodiment of the invention,each group of headset output signals includes the correspondingdetection-source signal at a different volume level. In an embodiment ofthe invention, the method for dynamically adjusting the output of theheadset further includes the step of performing a DRC analysis accordingthe plurality of groups of measured headset signals.

FIG. 7 is a flow chart 700 illustrating step S650 according to anembodiment of the invention. In step S710, the electronic device 100 iscoupled to the headset device 400. In step S720, the electronic device100 displays a source signal corresponding to a first volume level. Instep S730, the electronic device 100 transmits the source signal to theheadset device 400. In step S740, the DC component of the source signalis canceled by the DC cancellation circuit of the headset device 400. Instep S750, a voltage-division process is performed on the source signalwhich has canceled the DC component by the bleeder circuit of theheadset device 400 to generate an output signal. In step S760, theelectronic device 100 records a microphone signal corresponding to theoutput signal. In step S770, the electronic device 100 samples themicrophone signal every default period to obtain an effective-voltagevalue corresponding to the microphone signal in each default period.

In step S780, the electronic device 100 determines whether theeffective-voltage value is higher than a threshold. When theeffective-voltage value is higher than the threshold, step S790 isperformed. In step S790, the electronic device 100 dynamically adjuststhe first volume level to an appropriate second volume level to displaythe source signal. When the effective-voltage value is not higher thanthe threshold, the electronic device 100 still plays the source signalat the first volume level.

According to the method for dynamically adjusting the output of theheadset provided in the embodiments of the invention, the electronicdevice 100 can be utilized with the headset device 400 for dynamicallyadjusting the current volume level to ensure that the user can listen toaudio data within a safe and appropriate range.

The steps of the method described in connection with the aspectsdisclosed herein may be embodied directly in hardware, in a softwaremodule executed by a processor, or in a combination of the two. Asoftware module (e.g., including executable instructions and relateddata) and other data may reside in a data memory such as RAM memory,flash memory, ROM memory, EPROM memory, EEPROM memory, registers, a harddisk, a removable disk, a CD-ROM, or any other form of computer-readablestorage medium known in the art. A sample storage medium may be coupledto a machine such as, for example, a computer/processor (which may bereferred to herein, for convenience, as a “processor”) such that theprocessor can read information (e.g., code) from and write informationto the storage medium. A sample storage medium may be integral to theprocessor. The processor and the storage medium may reside in an ASIC.The ASIC may reside in user equipment. In the alternative, the processorand the storage medium may reside as discrete components in userequipment. Moreover, in some aspects, any suitable computer-programproduct may comprise a computer-readable medium comprising codesrelating to one or more of the aspects of the disclosure. In someaspects, a computer software product may comprise packaging materials.

It should be noted that although not explicitly specified, one or moresteps of the methods described herein can include a step for storing,displaying and/or outputting as required for a particular application.In other words, any data, records, fields, and/or intermediate resultsdiscussed in the methods can be stored, displayed, and/or output toanother device as required for a particular application. While theforegoing is directed to embodiments of the present invention, other andfurther embodiments of the invention can be devised without departingfrom the basic scope thereof. Various embodiments presented herein, orportions thereof, can be combined to create further embodiments. Theabove description is of the best-contemplated mode of carrying out theinvention. This description is made for the purpose of illustrating thegeneral principles of the invention and should not be taken in alimiting sense. The scope of the invention is best determined byreference to the appended claims.

The above paragraphs describe many aspects. Obviously, the teaching ofthe invention can be accomplished by many methods, and any specificconfigurations or functions in the disclosed embodiments only present arepresentative condition. Those who are skilled in this technology canunderstand that all of the disclosed aspects in the invention can beapplied independently or be incorporated.

While the invention has been described by way of example and in terms ofpreferred embodiment, it is to be understood that the invention is notlimited thereto. Those who are skilled in this technology can still makevarious alterations and modifications without departing from the scopeand spirit of this invention. Therefore, the scope of the presentinvention shall be defined and protected by the following claims andtheir equivalents.

What is claimed is:
 1. An electronic device, comprising: a firstconnection interface, coupled to a detection device or a headset device,when the first connection interface is coupled to the detection devicetransmitting a plurality of detection-source signals to the detectiondevice, and receiving a plurality of groups of headset output signalscorresponding to the plurality of detection-source signals from thedetection device; a processor, coupled to the first connectioninterface, when the first connection interface is coupled to thedetection device obtaining gain information according a plurality ofgroups of measured headset signals corresponding to the plurality ofgroups of headset output signals, and when the first connectioninterface is coupled to the headset device dynamically adjusting anoutput of the headset device according to the gain information; and astorage device, coupled to the processor and storing the gaininformation.
 2. The electronic device of claim 1, wherein each group ofheadset output signals includes the corresponding detection-sourcesignal at a different volume level.
 3. The electronic device of claim 1,wherein the headset includes a direct-current (DC) cancellation circuitand a bleeder circuit.
 4. The electronic device of claim 3, furthercomprising: a playing device, coupled to the processor and playing asource signal at a first volume level, and transmitting the sourcesignal to the headset device through the first connection interface. 5.The electronic device of claim 4, wherein the first connection interfacereceives an output signal which is generated by processing the sourcesignal by the DC cancellation circuit and the bleeder circuit of theheadset device.
 6. The electronic device of claim 5, further comprising:a recording device, coupled to the processor and recording the pluralityof groups of measured headset signals and a microphone signalcorresponding to the output signal.
 7. The electronic device of claim 6,wherein the processor samples the microphone signal every default periodto obtain an effective-voltage value corresponding to the microphonesignal in each default period.
 8. The electronic device of claim 7,wherein the processor determines whether the effective-voltage value ishigher than a threshold, and when the effective-voltage value is higherthan the threshold, dynamically adjusts the first volume level to asecond volume level.
 9. The electronic device of claim 1, wherein theprocessor performs a Dynamic Range Control (DRC) analysis according theplurality of groups of measured headset signals.
 10. A method fordynamically adjusting an output of a headset, applied to an electronicdevice, the method comprising: coupling the electronic device to adetection device; transmitting a plurality of detection-source signalsto the detection device; receiving a plurality of groups of headsetoutput signals corresponding to the plurality of detection-sourcesignals from the detection device; obtaining gain information accordinga plurality of groups of measured headset signals corresponding to theplurality of groups of headset output signals; unplugging the detectiondevice from the electronic device; coupling the electronic device to aheadset device; and dynamically adjusting the output of the headsetaccording to the gain information.
 11. The method for dynamicallyadjusting the output of the headset of claim 10, wherein each group ofheadset output signals includes the corresponding detection-sourcesignal at a different volume level.
 12. The method for dynamicallyadjusting the output of the headset of claim 10, wherein the headsetincludes a direct-current (DC) cancellation circuit and a bleedercircuit, and the method further comprising: playing a source signal at afirst volume level; and transmitting the source signal to the headsetdevice through the electronic device.
 13. The method for dynamicallyadjusting the output of the headset of claim 12, further comprising:canceling a DC component of the source signal by the DC cancellationcircuit of the headset device; and performing a voltage-division processto the source signal which has canceled the DC component by the bleedercircuit of the headset device to generate an output signal.
 14. Themethod for dynamically adjusting the output of the headset of claim 13,further comprising: recording a microphone signal corresponding to theoutput signal.
 15. The method for dynamically adjusting the output ofthe headset of claim 13, further comprising: sampling the microphonesignal every default period to obtain an effective-voltage valuecorresponding to the microphone signal in each default period.
 16. Themethod for dynamically adjusting the output of the headset of claim 13,further comprising: determining whether the effective-voltage value ishigher than a threshold; and dynamically adjusting the first volumelevel to a second volume level when the effective-voltage value ishigher than the threshold.
 17. The method for dynamically adjusting theoutput of the headset of claim 10, further comprising: performing aDynamic Range Control (DRC) analysis according the plurality of groupsof measured headset signals.